'use strict';
var even_asc_odd_desc = function(collection){
    let arr1 = [];
    let arr2 = [];
    let result = [];
for(let item of collection){
    if(item%2 === 0){
     arr1.push(item);
    }else{
        arr2.push(item);
    }
}
let arry1 = arr1.sort((a,b)=>a-b);
let arry2 = arr2.sort((a,b)=>b-a);

result = arry1.concat(arry2);
console.log(result);
return result;
};
even_asc_odd_desc( [4, 32, 12, 45, 67, 46, 2, 53, 68, 54, 11]);
module.exports = even_asc_odd_desc;
